<?php

/**
 * Project filter form base class.
 *
 * @package    ingenyo
 * @subpackage filter
 * @author     Your name here
 */
abstract class BaseFormFilterPropel extends sfFormFilterPropel
{

  public function setup()
  {
//    $formatter = new pmWidgetFormSchemaFormatterTable($this);
//    $this->getWidgetSchema()->addFormFormatter("pm_table", $formatter);
//    $this->getWidgetSchema()->setFormFormatterName("pm_table");



    // auto configure widgets
    WidgetFactory::replaceWidgets($this);
    // auto configure validators
    ValidatorFactory::replaceValidators($this);

    $this->configureWidgets();
    $this->configureValidators();

  }

  public function configureWidgets()
  {

  }

  public function configureValidators()
  {

  }

}
